<div>
	<ul>
		<li><?php echo anchor('representanteComercial/formNovoRepresentanteComercial','Novo Representante')?></li>
	</ul>
</div>
<div>
	<?php if(isset($representantes)):?>
	<table border="1">
		<thead>
			<th>Nome</th>
			<th>Empresa</th>
		</thead>
		<tbody>
			<?php foreach ($representantes as $representante):?>
			<tr>
				<td><?php echo(anchor('representanteComercial/detalhar/'. $representante->id_repres_comercial, $representante->tx_nome));?></td>
				<td><?php echo($representante->tx_empresa);?></td>
			</tr>
			<?php endforeach;?>
		</tbody>
	</table>
	<?php endif;?>
</div>